package com.qf.com.qf.grass.service;

import com.qf.com.qf.grass.param.AddGrassParam;
import com.qf.com.qf.grass.param.GrassPageParam;
import com.qf.com.qf.grass.vo.GrassVO;
import com.qf.common.core.common.PageParam;
import com.qf.common.core.common.PageVO;
import com.qf.common.core.entity.Grass;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * @author zdl
 * @date 2025/3/26
 */
public interface GrassService {
    void addGrass(AddGrassParam addGrassParam);

    PageVO<GrassVO> grassPage(GrassPageParam grassPageParam);

    String uploadImg(MultipartFile file);

    Grass getGrassById(Integer id);

    /**
     * 批量更新点赞数
     */
    void batchUpdateLikeNum();

    void timerAddGrass(AddGrassParam addGrassParam);

    void updateGrassStatus(Integer id, Integer status);
}
